export default () => ({
  type: process.env.DATABASE_TYPE,
  database: process.env.DATABASE_NAME,
  host: process.env.DATABASE_HOST,
  port: parseInt(process.env.DATABASE_PORT, 10) || 3306,
  username: process.env.DATABASE_USER,
  password: process.env.DATABASE_PASSWORD,
  logging: !!process.env.DATABASE_LOGGING || true,
  poolSize: parseInt(process.env.DATABASE_POOLSIZE, 10),
  connectorPackage: process.env.DATABASE_CONNECTOR_PACKAGE,
  maxQueryExecutionTime: parseInt(process.env.DATABASE_MAX_EXECUTE_TIME, 10) || 1500,
});
